package org.example.bifunction;

import java.util.function.BiFunction;
import java.util.function.Function;

public class Java8BiFunction1a {
    public static void main(String[] args) {
        BiFunction<Integer,Integer,Double> func1 = (x1, x2) -> Math.pow(x1,x2);
        Function<Double,String> func2 = (input) -> "result: " + input;
        String result = func1.andThen(func2).apply(2,4);
        System.err.println(result);

    }
}
